package com.java1223;

public class Java05 {
    public static void main(String[] args) {
        //java流程控制语句 循环
        //1.for循环
        for(int i=1;i<=10;i++){
            System.out.println(i);
        }
        //2.while循环
        int i=1;
        while(i<=10){
            System.out.println(i);
            i++;
        }
        //3.do...while循环
        int j=1;
        do{
            System.out.println(j);
            j++;
        }while(j<=10);
    }
}
